package com.resolution.dietaryassessment.databeans;

import java.io.Serializable;

/**
 * @author By Resolusion
 * @Title:
 * @Date: 2020/5/13
 * @Time: 11:06
 * @email Res01ution@foxmail.com
 */
public class CommonConfig implements Serializable {
    private static CommonConfig mInstance;

    private Statistical statistical;
    private UserRealData userRealData;
    private MealRatioBean mealRatioBean;
    private EnergyRadioBean energyRadioBean;
    private int ProteinSource;

    public static CommonConfig getInstance(){
        if (mInstance == null){
            synchronized (CommonConfig.class) {
                if (mInstance == null) {
                    mInstance = new CommonConfig();
                }
            }
        }
        return mInstance;
    }

    public Statistical getStatistical() {
        return statistical;
    }

    public void setStatistical(Statistical statistical) {
        this.statistical = statistical;
    }

    public UserRealData getUserRealData() {
        return userRealData;
    }

    public void setUserRealData(UserRealData userRealData) {
        this.userRealData = userRealData;
    }

    public MealRatioBean getMealRatioBean() {
        return mealRatioBean;
    }

    public void setMealRatioBean(MealRatioBean mealRatioBean) {
        this.mealRatioBean = mealRatioBean;
    }

    public EnergyRadioBean getEnergyRadioBean() {
        return energyRadioBean;
    }

    public void setEnergyRadioBean(EnergyRadioBean energyRadioBean) {
        this.energyRadioBean = energyRadioBean;
    }

    public int getProteinSource() {
        return ProteinSource;
    }

    public void setProteinSource(int proteinSource) {
        ProteinSource = proteinSource;
    }
}
